package main

import (
	"bufio"
	"fmt"
	"os"
)

// 获取键盘输入的数据
func main() {
	fmt.Println("Hello World!")
	fmt.Printf("Please input your full name:")
	var age int
	fmt.Scanf("%d", &age)
	fmt.Printf("age: %d\n", age)
	var inputReader = *bufio.NewReader(os.Stdin)
	input, err := inputReader.ReadString('\n')
	if err == nil {
		fmt.Printf("input: %s\n", input)
	} else {
		fmt.Println(err)
	}
}
